<table width="100%">
<caption><h1><?=$caption?></h1><span><?=html::anchor(Router::$controller.'/create', '添加')?></span></caption>
<thead>
<tr>
	<?php foreach($header as $value) { ?> <th><?=$value?></th> <?php } ?>
</tr>
</thead>
<tbody id="myTable">
<?php foreach($datas as $data) { ?>
<tr>
	<?php foreach($rows as $value) { ?> <td><?=$data->$value?></td> <?php } ?>
	<td>
		<?php foreach($actions as $action) { ?><?=html::anchor(Router::$controller.'/'.$action.'/'.$data->id, $action)?> <?php } ?>
	</td>
</tr>
<?php } ?>
</tbody>
</table>
<script type="text/javascript" src="js/table.js"></script>
